#include "View.hpp"

#include <Process/Style/ScenarioStyle.hpp>

#include <QGraphicsSceneMouseEvent>
#include <QPainter>
namespace Nodal
{

View::View(QGraphicsItem* parent)
    : LayerView{parent}
{
  setFlag(ItemHasNoContents, true);
  setFlag(ItemClipsChildrenToShape);
}

View::~View() { }

void View::paint_impl(QPainter* painter) const { }

void View::dragEnterEvent(QGraphicsSceneDragDropEvent* event) { }

void View::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) { }

void View::dragMoveEvent(QGraphicsSceneDragDropEvent* event) { }

void View::dropEvent(QGraphicsSceneDragDropEvent* event)
{
  dropReceived(event->pos(), *event->mimeData());
}

}
